<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>lesson 12</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
    <div id="root"></div>
</body>

</html>
<!-- 第二章  Vue 基础语法/2-13 事件绑定(2) -->
<script>
    const app = Vue.createApp({
        methods: {
            handleClick() {
                alert(666);
            },
        },
        template: `
        <div>
            <div @click="handleClick">哈哈哈</div>
        </div>
        `
    });
    const vm = app.mount('#root')


    // event，$event
    // 事件修饰符分别有：stop，prevent，capture，self，once，passive
    // 按键修饰符分别有：enter，tab，delete，esc，up，down，left，right
    // 鼠标修饰符分别有：left，right，middle
    // 精确修饰符分别有：exact
</script>